Repository navigation
feat(record-page): an empty field you can edit reads 「设置{字段名}」 and one click fills it; an editable value offers the copy icon - #36385
Conversation
…t <label>, and an editable value offers the copy button Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
…alue's copy button; changeset Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA Final head · 2026-11-22T09:29Z · |
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Contract-review-claim: session_01QsR2jTeURPvEm465RcoYEC · head 2c35661 · 2026-11-22T09:30Z |
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jS7jCv5PH4ytECQWqf L1 ACCEPT · head 维护者速读
席位核对
|
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Contract reviewServed-tier: Face: declaration ( ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA Landing · 2026-11-22T10:05Z · head
State: ready + auto-merge now; |
Fixes #36292
Requested by Steedos · project thread
repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA
Part of epic #35590 (record page redo). Claim 7075947584 (
Premise: corrected); binding linked ruling: #36147 record 7066516044 (option A), shipped by #36234.Clause-②: yes (widening)
Metadata-protocol: none
The claim's line reads
Clause-②: no (expected …)with the instruction to amend it toyes (widening)if a key is added: one key is added,detail.setField, in every@object-ui/i18npack. No prop, export or schema key is removed or narrowed.维护者速读
What changes
Measured on
origin/mainb3bcfef before writing anything (the card's items, one by one, on the synthesized record page's field area, which isDetailSection's frameless face in all of the side preview, the phone 「详情」 tab, the pinned left column and a full page alone):onClickon the frameless face callsonEnterInlineEdit(guarded byclickBelongsElsewhere)clickBelongsElsewherehands a click on ana, a button or arole=linkto that elementcanInlineEditField ? pencil : copyOffered ? copy : null, so an editable value had no copy iconpointer-coarse:hiddenper ruling item 1); the keyboard-only pencil stays beside itEmptyValuedashcanInlineEditFieldon the frameless face readst('detail.setField', { field })intext-muted-foreground/70; the row's existing click enters edit. Read-only, no write grant, record not inline-editable: the dash, unchangedEmptyFieldsRow)DefaultRecordPageContext)DetailView) keep their faces, as feat(record-page): the field area is one list in the side preview, on a phone and in the pinned left column (#36147) #36234 left them: double-click and the pencil, and the dash on an empty value. A "set" placeholder there would invite a single click that does nothing. Raised as an open question in the report, not built.detail.setFieldin all eleven packs (enSet {{field}}, zh-Hans设置{{field}}, zh-Hant設定{{field}}, ja{{field}}を設定, ko{{field}} 설정, de{{field}} festlegen, frDéfinir {{field}}, esEstablecer {{field}}, pt-BRDefinir {{field}}, ruУказать «{{field}}», arتعيين {{field}})..changeset/36292-record-field-set-placeholder.md(@object-ui/plugin-detail,@object-ui/i18n: patch).Files to read first, by risk:
ui/packages/plugin-detail/src/DetailSection.tsx, thedisplayValueclosure's new first branch (isEmpty && frameless && canInlineEditField), where the placeholder replaces the dash.copyOffered && (!canInlineEditField || frameless).ui/packages/plugin-detail/src/__tests__/DetailSection.fieldList-36147.test.tsx, the two new top-leveldescribeblocks.Tests
New pins in the existing field-list harness (two top-level
describes, objectstack#36292):Set Note/Set Phoneand a click on it enters edit withnote;No valueplaceholder and its click does not enter edit;MePermissionsProviderenvelope,editable: false) keeps the placeholder;I18nProviderinzh-CNthe placeholder reads设置备注;pointer-coarse:hidden, copiesAtlas dealand does not enter edit; CONTROL: an empty editable value has none; CONTROL: off the field face an editable row keeps the pencil alone.Local runs
All under
scripts/pm/os-verify-lock.sh, vitest fromui/with--maxWorkers=1:vitest run packages/plugin-detail/src/__tests__/DetailSection.fieldList-36147.test.tsx:Tests 25 passed (25), VERDICT command-exit 0.vitest run packages/plugin-detail/ packages/i18n/(head7b0e4d41; the one later commit2c35661fedits only the changeset):Test Files 514 passed | 1 skipped (515),Tests 5790 passed | 31 skipped (5821), VERDICT command-exit 0.pnpm --filter @object-ui/plugin-detail --filter @object-ui/i18n run type-check(bothtsc --noEmitandtsc -p tsconfig.test.json): VERDICT command-exit 0.Ablations (one per changed behaviour, through scripts/ablation-replace.mjs)
Both ran on head
2c35661finside one hold of the shared lock; each leg is the pin file above, the restore proven by the tool (blob932402dfeeb2== HEAD,git diff HEADempty).if (isEmpty && frameless && canInlineEditField) {toif (false && isEmpty && frameless && canInlineEditField) {; mutation landed, anchor 1 to 0, blob932402dfeeb2todfd20d6b8e8c):Tests 4 failed | 21 passed (25)— the "Set Note" pin, the read-only and no-write-grant controls (each also asserts the remainingSet Phone) and the zh-CN pin. Restored.{copyOffered && (!canInlineEditField || frameless) && (to{copyOffered && !canInlineEditField && (; blob932402dfeeb2tod71eb76d821d):Tests 1 failed | 24 passed (25)— the editable-value copy pin. Restored.Unmutated, the same pin file:
Tests 25 passed (25)(the local run above).Derived gate families (dispatch-gates --commands, 41)
All 41 families
node scripts/pm/dispatch-gates.mjs --commandsderives for this diff ran locally on head7b0e4d41, every one exit 0 (pnpm check:type-check-debtfirst answered exit 3, PREREQUISITE NOT MET because its closure build never got a lock turn; re-run under the lock:TCDEBT_EXIT=0, re-measure OK;pnpm --dir ui exec vitest run scripts/:Tests 5127 passed | 2 skipped).--ranreconciliation:41 derived famil(ies) accounted for — 41 run, 0 NOT-MEASURED (a DERIVED zero — all 41 recorded an exit code and none of them is 3). On the final head2c35661f(changeset-only commit) the changeset families were re-run, exit 0 each:check-adr-0087-registration,check-changeset-no-major,check-empty-changeset,check:nul-bytes,check:published-files. The required CI contexts (Test UI,Type Check UI,Lint UI,Lint & Repo Gates, …) are CI's, not re-run here.Acceptance notes
Screenshots the card asks for, taken on head
2c35661fin a live CRM example app (examples/app-crm,objectstack dev --fresh) with the Console dev server built from that head; Chromium 1440x900 at deviceScaleFactor 2, UI language zh-CN, the lead "Marie Curie" after 「显示 2 个空字段」. Hosted on the side branchclaude/issue-36292-evidence(never merged), not on this branch. No read-only empty field is cheaply reachable on this record (every empty body field is editable for the admin), so the 「—」 control rests on the jsdom pins above.Full record page, empty editable fields read 「设置分配给」 / 「设置转化商机」:
Full record page, after one click on 「设置转化商机」 (the inline edit session opens):
Side preview, the same two placeholders:
Side preview, after one click on 「设置转化商机」:
Not re-verified in a browser: Enter / click-away saves and Esc cancels; those are the existing inline-edit session's keys, untouched here.
The card's 没有核对的 items (approval-locked records; tap-vs-scroll on a phone) are unchanged by this PR: a locked record is not inline-editable, so its empty fields keep the dash.
Verification
Two minutes: on a default record page (HotCRM 线索, or any object without an authored record page) open the side preview, click 「显示 N 个空字段」. Expected: each empty field you can edit reads light 「设置字段名」; one click opens its editor. A read-only empty field still reads 「—」. Hover a filled editable value: a copy icon appears at its right, and clicking it copies without entering edit.
Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA